package chixing.day09.homework.work4;

import chixing.day09.homework.work4.Downloadable;
import chixing.day09.homework.work4.MediaFile;
import chixing.day09.homework.work4.Playable;

public class Music extends MediaFile implements Playable, Downloadable {
    public Music() {
    }
    public Music(String fileName, double fileSize) {
        super(fileName, fileSize);
    }

    @Override
    public void download(String url) {
        System.out.println("音乐下载成功");
    }

    @Override
    public void play() {
        System.out.println(super.getFileName()+"音乐开始播放");
    }

    @Override
    public void stop() {
        System.out.println(super.getFileName()+"音乐停止播放");
    }
}
